<div class="information">
    <div class="head_title" >
        <span class="jump-color" ui-sref="main.notice">公告管理</span>
        <span class="tit-color"> / 公告创建</span>
    </div>
    <form class="form-horizontal  w5c-form " w5c-form-validate name="mainForm" style="margin-top: 15px">


        <section class="fg-section" style="padding-top: 30px">

            <div class="form-group personal-second">
                <label class="col-sm-2 control-label"><i class="red-icon">*</i>标题：</label>
                <div class="col-sm-8 personal-head">
                    <input type="text" class="input" placeholder="标题" ng-model="formData.title"
                            name="title" required="" ng-maxlength="50" ng-minlength="2">

                    <div style="margin-top: 5px;margin-left: -7px">
                        <label class="pb-2" ng-repeat="title in titleStyles" style="cursor: pointer;margin-right: 10px">
                            <input type="checkbox" ng-model="title.checked" id="{{title.value}}" class="magic-checkbox">
                            <label for="{{title.value}}" style="padding-top: 2px"></label>
                            {{title.value}}
                        </label>
                    </div>
                </div>

            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">对象：</label>
                <div class="col-sm-8 personal-head" style="margin-top: 6px;margin-left: -3px" ng-init="sendTo=1">
                    <label class="pb-2" style="cursor: pointer;margin-right: 10px">
                        <input type="radio" ng-model="sendTo" class="magic-radio" value="1" id="all" name="sendTo" ng-change="sendToChange()">
                        <label for="all" style="padding-top: 2px;margin-left: -5px"></label>
                        全部
                    </label>
                    <label class="pb-2" style="cursor: pointer;margin-right: 10px">
                        <input type="radio" ng-model="sendTo" class="magic-radio" value="2" id="level" name="sendTo" ng-change="sendToChange()">
                        <label for="level" style="padding-top: 2px;margin-left: -5px"></label>
                        按等级
                    </label>
                    <label class="pb-2" style="cursor: pointer;margin-right: 10px">
                        <input type="radio" ng-model="sendTo" class="magic-radio" value="3" id="sign" name="sendTo" ng-change="sendToChange()">
                        <label for="sign" style="padding-top: 2px;margin-left: -5px"></label>
                        按签约
                    </label>
                    <label class="pb-2" style="cursor: pointer;margin-right: 10px">
                        <input type="radio" ng-model="sendTo" class="magic-radio" value="4" id="examine" name="sendTo" ng-change="sendToChange()">
                        <label for="examine" style="padding-top: 2px;margin-left: -5px"></label>
                        按审核
                    </label>
                    <div ng-show="sendTo==2">
                        <label class="pb-2" ng-repeat="level in Lvs" style="cursor: pointer;margin-right: 10px">
                            <input type="checkbox" ng-model="level.checked" id="{{level.value}}" class="magic-checkbox">
                            <label for="{{level.value}}" style="padding-top: 2px;margin-left: -5px"></label>
                            {{level.value}}
                        </label>
                    </div>
                    <div ng-show="sendTo==3">
                        <label class="pb-2" ng-repeat="sign in signs" style="cursor: pointer;margin-right: 10px">
                            <input type="checkbox" ng-model="sign.checked" id="{{sign.value}}" class="magic-checkbox">
                            <label for="{{sign.value}}" style="padding-top: 2px;margin-left: -5px"></label>
                            {{sign.value}}
                        </label>


                    </div>
                    <div ng-show="sendTo==4">
                        <label class="pb-2" ng-repeat="status in checkStatus" style="cursor: pointer;margin-right: 10px">
                            <input type="checkbox" ng-model="status.checked" id="{{status.value}}" class="magic-checkbox">
                            <label for="{{status.value}}" style="padding-top: 2px;margin-left: -5px"></label>
                            {{status.value}}
                        </label>


                    </div>

                </div>
            </div>
            <div class="form-group personal-second">
                <label class="col-sm-2 control-label">定时：</label>
                <div class="col-sm-8 personal-head">

                    <input ims-select-range-time="rangeDate" type="text " style="width: 200px">

                </div>
            </div>
            <div class="form-group personal-second">
                <label class="col-sm-2 control-label"><i class="red-icon">*</i>摘要：</label>
                <div class="col-sm-8 personal-head">

                    <textarea placeholder="摘要最多100字" ng-model="formData.brief"
                              name="brief" required="" ng-maxlength="100" ng-minlength="10" style="padding: 5px"></textarea>
                </div>
            </div>
            <div class="form-group personal-second">
                <label class="col-sm-2 control-label"><i class="red-icon">*</i>内容：</label>
                <div class="col-sm-8 personal-head">

                    <textarea ng-keditor ng-model="formData.content" style="min-height: 500px" ></textarea>
                    <input type="hidden" ng-model="formData.content" name="content" required="">
                </div>
            </div>


            <div class="clear"></div>

        </section>


        <footer class="container-fluid foot-wrap">
            <div class="text-center">
                <button class="btn btn-primary" style="width: 90px" type="button" w5c-form-submit="createNotice()">{{'确定'}}</button>
                <button type="button" class="btn ims-btn" style="width: 90px" ui-sref="main.notice">取消</button>
            </div>
        </footer>

    </form>


</div>
